package com.hantang.web.servlet;

import java.io.PrintWriter;

import javax.servlet.http.HttpServletRequest;

import com.hantang.web.json.handlers.AddNewsHandler;

public class AddNewsServlet extends BaseServlet {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7497584267688261827L;

	@Override
	public int doService(HttpServletRequest request, PrintWriter out) {
		String title = request.getParameter("title");
		String highlight = request.getParameter("highlight");
		String content = request.getParameter("content");
		
		String sret = AddNewsHandler.handleServlet(title, highlight, content);
		out.print(sret);
		
		return SERVLET_SUCCESS_CODE;
	}

}
